package com.github.hgbit.demospringboot.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * .
 *
 * @author huangguan
 * @since 2019-03-13
 */
@RestController
@RequestMapping("sapi")
@Api(tags = "示例接口", position = 1)
public class DemoController {

    @GetMapping("hello")
    @ApiOperation(value = "检查用户是否投资某标的", httpMethod = "POST", position = 1)
    public TestVo hello() {
        return new TestVo("hello");
    }

}
